package app.vista;

import java.io.File;
import javax.swing.JFileChooser;

public class JFC
{
	private File selectedFile;
	
	public JFC()
	{
		JFileChooser jfc=new JFileChooser();
		jfc.setFileFilter(new FiltroJFC()); // aplico filtro de XML

		int rdo=jfc.showOpenDialog(null);
		if(rdo==JFileChooser.APPROVE_OPTION)
		{	
			selectedFile =jfc.getSelectedFile();
		}
		else
		{
			selectedFile=null;
		}
	}
	
	public File getSelectedFile()
	{
		return selectedFile;
	}
}
